package com.xiguaji.tiktok.v1.tiktok.permission.repository;

import com.xiguaji.tiktok.v1.tiktok.permission.model.Permission;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;
@Repository
public interface PermissionRepository extends CrudRepository<Permission,Long> {
    Optional<Permission> findByNameAndProperty(String name, String property);

    Permission findByName(String name);
}
